/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #0a0a0a;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #fff;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.logo img {
  height: 30px;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 10px;
  flex: 1;
  margin: 0 15px;
  max-width: 200px;
}

.search-box input {
  background: none;
  border: none;
  color: #fff;
  width: 100%;
  outline: none;
  padding-left: 5px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-btn {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* 筛选导航 */
.filter-nav {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 90;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-tabs {
  display: flex;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  margin-right: 10px;
  white-space: nowrap;
  transition: all 0.3s;
  font-weight: 500;
}

.filter-tab.active {
  background-color: #e62117;
}

.filter-tab:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.sort-options select {
  width: 100%;
  background-color: rgba(11, 11, 11, 0.956);
  color: #f3efef;
  padding: 8px 15px;
  border-radius: 5px;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 3px;
}

.nav-item span {
  font-size: 12px;
}

.nav-item.active {
  color: #e62117;
}

.nav-item:hover {
  color: #fff;
}

/* 主内容区 */
.main-content {
  padding: 110px 15px 80px;
}

/* 精选CG */
.featured-cg {
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background-color: #e62117;
  margin-right: 8px;
  border-radius: 3px;
}

.featured-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.featured-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.featured-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.featured-item:hover .play-overlay {
  opacity: 1;
}

.featured-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.featured-item:hover .featured-thumb img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.play-overlay i {
  font-size: 40px;
  color: #fff;
  text-shadow: 0 0 10px rgba(230, 33, 23, 0.8);
}

.duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 3px;
}

.featured-info {
  padding: 15px;
}

.featured-info h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.featured-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 10px;
}

.featured-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* CG列表 */
.cg-list {
  margin-bottom: 20px;
}

.cg-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cg-group {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
}

.group-title {
  font-size: 16px;
  font-weight: 500;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
}

.group-content {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.cg-item {
  transition: all 0.3s;
}

.cg-item:hover {
  transform: translateY(-5px);
}

.cg-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cg-thumb .play-overlay {
  opacity: 0;
  transition: opacity 0.3s;
}

.cg-item:hover .cg-thumb .play-overlay {
  opacity: 1;
}

.cg-item h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cg-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* 热门排行榜 */
.top-ranking {
  margin-bottom: 20px;
}

.ranking-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ranking-item {
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}

.ranking-item:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.1);
}

.rank-number {
  width: 40px;
  background-color: rgba(230, 33, 23, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #e62117;
}

.ranking-thumb {
  width: 100px;
  height: 80px;
  position: relative;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info {
  padding: 10px 15px;
  flex: 1;
}

.ranking-info h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.ranking-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* 模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 15px;
}

.modal-content {
  background-color: #1a1a1a;
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  animation: fadeIn 0.3s;
}

.video-content {
  max-width: 90%;
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.close-modal {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
}

#video-player {
  width: 100%;
  height: auto;
  max-height: 50vh;
  background-color: #000;
  border-radius: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 动画效果 */
.cg-group {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cg-group:nth-child(1) {
  animation-delay: 0.1s;
}

.cg-group:nth-child(2) {
  animation-delay: 0.2s;
}

.cg-group:nth-child(3) {
  animation-delay: 0.3s;
}